home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-1.iso / Files / System 7 / Frontier / Frontier SDK 2.1.sit / Frontier SDK 2.1 / Toolkits / Applet Toolkit / appletabout.c < prev    next >
MacBinary  |  1992-10-11  |  4.4 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Sun Oct 11 14:30:00 1992, modified Sun Oct 11 14:30:00 1992, creator Think C, type ASCII, 3955 bytes "appletabout.c" , at 0xff3 382 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 61 70 70 6c 65 74 | 61 62 6f 75 74 2e 63 00 |..applet|about.c.|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 0f 73 00 | 00 01 7e a6 fe 23 28 a6 |......s.|..~..#(.|
|00000060| fe 23 28 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.#(.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 0a 63 00 00 |........|.....c..|
|00000080| 0d 2f 2a a9 20 43 6f 70 | 79 72 69 67 68 74 20 31 |./*. Cop|yright 1|
|00000090| 39 38 38 2d 31 39 39 32 | 20 55 73 65 72 4c 61 6e |988-1992| UserLan|
|000000a0| 64 20 53 6f 66 74 77 61 | 72 65 2c 20 49 6e 63 2e |d Softwa|re, Inc.|
|000000b0| 20 20 41 6c 6c 20 52 69 | 67 68 74 73 20 52 65 73 | All Ri|ghts Res|
|000000c0| 65 72 76 65 64 2e 2a 2f | 0d 0d 0d 23 69 6e 63 6c |erved.*/|...#incl|
|000000d0| 75 64 65 20 22 61 70 70 | 6c 65 74 69 6e 74 65 72 |ude "app|letinter|
|000000e0| 6e 61 6c 2e 68 22 0d 23 | 69 6e 63 6c 75 64 65 20 |nal.h".#|include |
|000000f0| 22 61 70 70 6c 65 74 6f | 70 73 2e 68 22 0d 23 69 |"appleto|ps.h".#i|
|00000100| 6e 63 6c 75 64 65 20 22 | 61 70 70 6c 65 74 71 75 |nclude "|appletqu|
|00000110| 69 63 6b 64 72 61 77 2e | 68 22 0d 23 69 6e 63 6c |ickdraw.|h".#incl|
|00000120| 75 64 65 20 22 61 70 70 | 6c 65 74 6d 61 69 6e 2e |ude "app|letmain.|
|00000130| 68 22 0d 23 69 6e 63 6c | 75 64 65 20 22 61 70 70 |h".#incl|ude "app|
|00000140| 6c 65 74 7a 6f 6f 6d 2e | 68 22 0d 23 69 6e 63 6c |letzoom.|h".#incl|
|00000150| 75 64 65 20 22 61 70 70 | 6c 65 74 61 62 6f 75 74 |ude "app|letabout|
|00000160| 2e 68 22 0d 0d 0d 23 69 | 66 64 65 66 20 4d 50 57 |.h"...#i|fdef MPW|
|00000170| 43 0d 0d 23 69 6e 63 6c | 75 64 65 20 3c 74 6f 6f |C..#incl|ude <too|
|00000180| 6c 75 74 69 6c 73 2e 68 | 3e 0d 23 69 6e 63 6c 75 |lutils.h|>.#inclu|
|00000190| 64 65 20 3c 6f 73 65 76 | 65 6e 74 73 2e 68 3e 0d |de <osev|ents.h>.|
|000001a0| 0d 23 65 6e 64 69 66 0d | 0d 0d 0d 23 64 65 66 69 |.#endif.|...#defi|
|000001b0| 6e 65 20 61 62 6f 75 74 | 6c 69 73 74 6e 75 6d 62 |ne about|listnumb|
|000001c0| 65 72 20 31 32 38 0d 0d | 57 69 6e 64 6f 77 50 74 |er 128..|WindowPt|
|000001d0| 72 20 61 62 6f 75 74 77 | 69 6e 64 6f 77 20 3d 20 |r aboutw|indow = |
|000001e0| 6e 69 6c 3b 0d 0d 0d 0d | 0d 0d 23 64 65 66 69 6e |nil;....|..#defin|
|000001f0| 65 20 64 6f 6c 69 6e 65 | 28 78 29 5c 0d 09 09 09 |e doline|(x)\....|
|00000200| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |........|........|
|00000210| 5c 0d 09 4d 6f 76 65 54 | 6f 20 28 72 2e 6c 65 66 |\..MoveT|o (r.lef|
|00000220| 74 20 2b 20 28 72 2e 72 | 69 67 68 74 20 2d 20 72 |t + (r.r|ight - r|
|00000230| 2e 6c 65 66 74 20 2d 20 | 53 74 72 69 6e 67 57 69 |.left - |StringWi|
|00000240| 64 74 68 20 28 78 29 29 | 20 2f 20 32 2c 20 6c 69 |dth (x))| / 2, li|
|00000250| 6e 65 76 29 3b 09 09 5c | 0d 09 09 09 09 09 09 09 |nev);..\|........|
|00000260| 09 09 09 09 09 09 09 09 | 09 09 09 09 5c 0d 09 44 |........|....\..D|
|00000270| 72 61 77 53 74 72 69 6e | 67 20 28 78 29 3b 09 09 |rawStrin|g (x);..|
|00000280| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 5c 0d 09 |........|.....\..|
|00000290| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |........|........|
|000002a0| 09 09 5c 0d 09 6c 69 6e | 65 76 20 2b 3d 20 6c 69 |..\..lin|ev += li|
|000002b0| 6e 65 69 6e 63 3b 0d 0d | 0d 73 74 61 74 69 63 20 |neinc;..|.static |
|000002c0| 76 6f 69 64 20 64 72 61 | 77 61 62 6f 75 74 20 28 |void dra|wabout (|
|000002d0| 57 69 6e 64 6f 77 50 74 | 72 20 77 29 20 7b 0d 09 |WindowPt|r w) {..|
|000002e0| 0d 09 72 65 67 69 73 74 | 65 72 20 73 68 6f 72 74 |..regist|er short|
|000002f0| 20 69 3b 0d 09 72 65 67 | 69 73 74 65 72 20 73 68 | i;..reg|ister sh|
|00000300| 6f 72 74 20 6c 69 6e 65 | 76 20 3d 20 32 34 3b 0d |ort line|v = 24;.|
|00000310| 09 72 65 67 69 73 74 65 | 72 20 73 68 6f 72 74 20 |.registe|r short |
|00000320| 6c 69 6e 65 69 6e 63 20 | 3d 20 31 34 3b 0d 09 62 |lineinc |= 14;..b|
|00000330| 69 67 73 74 72 69 6e 67 | 20 6c 69 6e 65 73 20 5b |igstring| lines [|
|00000340| 36 5d 3b 0d 09 52 65 63 | 74 20 72 3b 0d 09 0d 09 |6];..Rec|t r;....|
|00000350| 66 6f 72 20 28 69 20 3d | 20 30 3b 20 69 20 3c 3d |for (i =| 0; i <=|
|00000360| 20 35 3b 20 69 2b 2b 29 | 09 0d 09 09 47 65 74 49 | 5; i++)|....GetI|
|00000370| 6e 64 53 74 72 69 6e 67 | 20 28 6c 69 6e 65 73 20 |ndString| (lines |
|00000380| 5b 69 5d 2c 20 61 62 6f | 75 74 6c 69 73 74 6e 75 |[i], abo|utlistnu|
|00000390| 6d 62 65 72 2c 20 69 20 | 2b 20 31 29 3b 0d 09 0d |mber, i |+ 1);...|
|000003a0| 09 72 20 3d 20 28 2a 77 | 29 2e 70 6f 72 74 52 65 |.r = (*w|).portRe|
|000003b0| 63 74 3b 0d 09 0d 09 49 | 6e 73 65 74 52 65 63 74 |ct;....I|nsetRect|
|000003c0| 20 28 26 72 2c 20 34 2c | 20 34 29 3b 0d 09 0d 09 | (&r, 4,| 4);....|
|000003d0| 54 65 78 74 46 6f 6e 74 | 20 28 73 79 73 74 65 6d |TextFont| (system|
|000003e0| 46 6f 6e 74 29 3b 0d 09 | 0d 09 54 65 78 74 53 69 |Font);..|..TextSi|
|000003f0| 7a 65 20 28 31 32 29 3b | 0d 09 0d 09 64 6f 6c 69 |ze (12);|....doli|
|00000400| 6e 65 20 28 6c 69 6e 65 | 73 20 5b 30 5d 29 3b 0d |ne (line|s [0]);.|
|00000410| 09 0d 09 54 65 78 74 46 | 6f 6e 74 20 28 67 65 6e |...TextF|ont (gen|
|00000420| 65 76 61 29 3b 0d 09 0d | 09 54 65 78 74 53 69 7a |eva);...|.TextSiz|
|00000430| 65 20 28 39 29 3b 0d 09 | 0d 09 64 6f 6c 69 6e 65 |e (9);..|..doline|
|00000440| 20 28 6c 69 6e 65 73 20 | 5b 31 5d 29 3b 0d 09 0d | (lines |[1]);...|
|00000450| 09 6c 69 6e 65 76 20 2b | 3d 20 6c 69 6e 65 69 6e |.linev +|= linein|
|00000460| 63 3b 20 2f 2a 73 6b 69 | 70 20 61 20 6c 69 6e 65 |c; /*ski|p a line|
|00000470| 2a 2f 0d 09 0d 09 64 6f | 6c 69 6e 65 20 28 6c 69 |*/....do|line (li|
|00000480| 6e 65 73 20 5b 32 5d 29 | 3b 0d 09 0d 09 64 6f 6c |nes [2])|;....dol|
|00000490| 69 6e 65 20 28 6c 69 6e | 65 73 20 5b 33 5d 29 3b |ine (lin|es [3]);|
|000004a0| 0d 09 0d 09 4d 6f 76 65 | 54 6f 20 28 72 2e 6c 65 |....Move|To (r.le|
|000004b0| 66 74 20 2b 20 34 2c 20 | 72 2e 62 6f 74 74 6f 6d |ft + 4, |r.bottom|
|000004c0| 20 2d 20 36 29 3b 0d 09 | 0d 09 44 72 61 77 53 74 | - 6);..|..DrawSt|
|000004d0| 72 69 6e 67 20 28 6c 69 | 6e 65 73 20 5b 34 5d 29 |ring (li|nes [4])|
|000004e0| 3b 0d 09 0d 09 4d 6f 76 | 65 54 6f 20 28 72 2e 72 |;....Mov|eTo (r.r|
|000004f0| 69 67 68 74 20 2d 20 53 | 74 72 69 6e 67 57 69 64 |ight - S|tringWid|
|00000500| 74 68 20 28 6c 69 6e 65 | 73 20 5b 35 5d 29 20 2d |th (line|s [5]) -|
|00000510| 20 34 2c 20 72 2e 62 6f | 74 74 6f 6d 20 2d 20 36 | 4, r.bo|ttom - 6|
|00000520| 29 3b 0d 09 0d 09 44 72 | 61 77 53 74 72 69 6e 67 |);....Dr|awString|
|00000530| 20 28 6c 69 6e 65 73 20 | 5b 35 5d 29 3b 0d 09 7d | (lines |[5]);..}|
|00000540| 20 2f 2a 64 72 61 77 61 | 62 6f 75 74 2a 2f 0d 09 | /*drawa|bout*/..|
|00000550| 0d 0d 76 6f 69 64 20 6f | 70 65 6e 61 62 6f 75 74 |..void o|penabout|
|00000560| 20 28 42 6f 6f 6c 65 61 | 6e 20 66 6c 7a 6f 6f 6d | (Boolea|n flzoom|
|00000570| 29 20 7b 20 2f 2a 63 61 | 6e 20 61 6c 73 6f 20 62 |) { /*ca|n also b|
|00000580| 65 20 63 61 6c 6c 65 64 | 20 74 6f 20 69 6d 70 6c |e called| to impl|
|00000590| 65 6d 65 6e 74 20 74 68 | 65 20 73 70 6c 61 73 68 |ement th|e splash|
|000005a0| 20 77 69 6e 64 6f 77 2a | 2f 0d 0d 09 52 65 63 74 | window*|/...Rect|
|000005b0| 20 72 3b 0d 09 0d 09 53 | 65 74 52 65 63 74 20 28 | r;....S|etRect (|
|000005c0| 26 72 2c 20 30 2c 20 30 | 2c 20 33 34 30 2c 20 31 |&r, 0, 0|, 340, 1|
|000005d0| 32 30 29 3b 0d 09 0d 09 | 70 75 73 68 6d 61 63 70 |20);....|pushmacp|
|000005e0| 6f 72 74 20 28 61 62 6f | 75 74 77 69 6e 64 6f 77 |ort (abo|utwindow|
|000005f0| 20 3d 20 4e 65 77 57 69 | 6e 64 6f 77 20 28 6e 69 | = NewWi|ndow (ni|
|00000600| 6c 2c 20 26 72 2c 20 28 | 43 6f 6e 73 74 53 74 72 |l, &r, (|ConstStr|
|00000610| 32 35 35 50 61 72 61 6d | 29 22 5c 70 22 2c 20 66 |255Param|)"\p", f|
|00000620| 61 6c 73 65 2c 20 61 6c | 74 44 42 6f 78 50 72 6f |alse, al|tDBoxPro|
|00000630| 63 2c 20 28 57 69 6e 64 | 6f 77 50 74 72 29 20 2d |c, (Wind|owPtr) -|
|00000640| 31 2c 20 66 61 6c 73 65 | 2c 20 30 29 29 3b 0d 09 |1, false|, 0));..|
|00000650| 09 0d 09 63 65 6e 74 65 | 72 77 69 6e 64 6f 77 20 |...cente|rwindow |
|00000660| 28 28 44 69 61 6c 6f 67 | 50 74 72 29 20 61 62 6f |((Dialog|Ptr) abo|
|00000670| 75 74 77 69 6e 64 6f 77 | 2c 20 71 75 69 63 6b 64 |utwindow|, quickd|
|00000680| 72 61 77 67 6c 6f 62 61 | 6c 20 28 73 63 72 65 65 |rawgloba|l (scree|
|00000690| 6e 42 69 74 73 29 2e 62 | 6f 75 6e 64 73 29 3b 0d |nBits).b|ounds);.|
|000006a0| 09 0d 09 69 66 20 28 66 | 6c 7a 6f 6f 6d 29 0d 09 |...if (f|lzoom)..|
|000006b0| 09 7a 6f 6f 6d 70 6f 72 | 74 20 28 61 62 6f 75 74 |.zoompor|t (about|
|000006c0| 77 69 6e 64 6f 77 2c 20 | 74 72 75 65 29 3b 0d 09 |window, |true);..|
|000006d0| 65 6c 73 65 0d 09 09 53 | 68 6f 77 57 69 6e 64 6f |else...S|howWindo|
|000006e0| 77 20 28 61 62 6f 75 74 | 77 69 6e 64 6f 77 29 3b |w (about|window);|
|000006f0| 0d 09 0d 09 64 72 61 77 | 61 62 6f 75 74 20 28 61 |....draw|about (a|
|00000700| 62 6f 75 74 77 69 6e 64 | 6f 77 29 3b 0d 09 7d 20 |boutwind|ow);..} |
|00000710| 2f 2a 6f 70 65 6e 61 62 | 6f 75 74 2a 2f 0d 09 0d |/*openab|out*/...|
|00000720| 09 0d 76 6f 69 64 20 63 | 6c 6f 73 65 61 62 6f 75 |..void c|loseabou|
|00000730| 74 20 28 42 6f 6f 6c 65 | 61 6e 20 66 6c 7a 6f 6f |t (Boole|an flzoo|
|00000740| 6d 29 20 7b 0d 0d 09 69 | 66 20 28 61 62 6f 75 74 |m) {...i|f (about|
|00000750| 77 69 6e 64 6f 77 20 21 | 3d 20 6e 69 6c 29 20 7b |window !|= nil) {|
|00000760| 0d 09 0d 09 09 48 69 64 | 65 57 69 6e 64 6f 77 20 |.....Hid|eWindow |
|00000770| 28 61 62 6f 75 74 77 69 | 6e 64 6f 77 29 3b 0d 09 |(aboutwi|ndow);..|
|00000780| 09 0d 09 09 69 66 20 28 | 66 6c 7a 6f 6f 6d 29 0d |....if (|flzoom).|
|00000790| 09 09 09 7a 6f 6f 6d 70 | 6f 72 74 20 28 61 62 6f |...zoomp|ort (abo|
|000007a0| 75 74 77 69 6e 64 6f 77 | 2c 20 66 61 6c 73 65 29 |utwindow|, false)|
|000007b0| 3b 0d 09 09 65 6c 73 65 | 0d 09 09 09 48 69 64 65 |;...else|....Hide|
|000007c0| 57 69 6e 64 6f 77 20 28 | 61 62 6f 75 74 77 69 6e |Window (|aboutwin|
|000007d0| 64 6f 77 29 3b 0d 09 09 | 0d 09 09 44 69 73 70 6f |dow);...|...Dispo|
|000007e0| 73 65 57 69 6e 64 6f 77 | 20 28 61 62 6f 75 74 77 |seWindow| (aboutw|
|000007f0| 69 6e 64 6f 77 29 3b 0d | 09 09 0d 09 09 61 62 6f |indow);.|.....abo|
|00000800| 75 74 77 69 6e 64 6f 77 | 20 3d 20 6e 69 6c 3b 0d |utwindow| = nil;.|
|00000810| 09 09 0d 09 09 70 6f 70 | 6d 61 63 70 6f 72 74 20 |.....pop|macport |
|00000820| 28 29 3b 0d 09 09 7d 0d | 09 7d 20 2f 2a 63 6c 6f |();...}.|.} /*clo|
|00000830| 73 65 61 62 6f 75 74 2a | 2f 0d 09 0d 09 0d 73 74 |seabout*|/.....st|
|00000840| 61 74 69 63 20 62 6f 6f | 6c 65 61 6e 20 61 62 6f |atic boo|lean abo|
|00000850| 75 74 77 69 6e 64 6f 77 | 6f 70 65 6e 20 28 76 6f |utwindow|open (vo|
|00000860| 69 64 29 20 7b 0d 09 0d | 09 72 65 74 75 72 6e 20 |id) {...|.return |
|00000870| 28 61 62 6f 75 74 77 69 | 6e 64 6f 77 20 21 3d 20 |(aboutwi|ndow != |
|00000880| 6e 69 6c 29 3b 0d 09 7d | 20 2f 2a 61 62 6f 75 74 |nil);..}| /*about|
|00000890| 77 69 6e 64 6f 77 6f 70 | 65 6e 2a 2f 0d 0d 0d 73 |windowop|en*/...s|
|000008a0| 74 61 74 69 63 20 62 6f | 6f 6c 65 61 6e 20 61 62 |tatic bo|olean ab|
|000008b0| 6f 75 74 68 61 6e 64 6c | 65 65 76 65 6e 74 20 28 |outhandl|eevent (|
|000008c0| 45 76 65 6e 74 52 65 63 | 6f 72 64 20 65 76 2c 20 |EventRec|ord ev, |
|000008d0| 62 6f 6f 6c 65 61 6e 20 | 2a 62 6f 78 67 6f 65 73 |boolean |*boxgoes|
|000008e0| 61 77 61 79 29 20 7b 0d | 0d 09 2f 2a 0d 09 72 65 |away) {.|../*..re|
|000008f0| 74 75 72 6e 20 74 72 75 | 65 20 69 66 20 74 68 65 |turn tru|e if the|
|00000900| 20 65 76 65 6e 74 20 69 | 73 20 63 6f 6e 73 75 6d | event i|s consum|
|00000910| 65 64 2c 20 66 61 6c 73 | 65 20 69 66 20 6e 6f 74 |ed, fals|e if not|
|00000920| 2e 0d 09 0d 09 73 65 74 | 20 62 6f 78 67 6f 65 73 |.....set| boxgoes|
|00000930| 61 77 61 79 20 74 6f 20 | 74 72 75 65 20 69 66 20 |away to |true if |
|00000940| 74 68 65 20 65 76 65 6e | 74 20 73 68 6f 75 6c 64 |the even|t should|
|00000950| 20 63 61 75 73 65 20 74 | 68 65 20 61 62 6f 75 74 | cause t|he about|
|00000960| 20 62 6f 78 20 74 6f 20 | 64 69 73 61 70 70 65 61 | box to |disappea|
|00000970| 72 2e 0d 09 2a 2f 0d 09 | 0d 09 2a 62 6f 78 67 6f |r...*/..|..*boxgo|
|00000980| 65 73 61 77 61 79 20 3d | 20 66 61 6c 73 65 3b 0d |esaway =| false;.|
|00000990| 09 0d 09 73 77 69 74 63 | 68 20 28 65 76 2e 77 68 |...switc|h (ev.wh|
|000009a0| 61 74 29 20 7b 0d 09 0d | 09 09 63 61 73 65 20 6b |at) {...|..case k|
|000009b0| 65 79 44 6f 77 6e 3a 20 | 63 61 73 65 20 61 75 74 |eyDown: |case aut|
|000009c0| 6f 4b 65 79 3a 20 7b 0d | 09 09 0d 09 09 09 72 65 |oKey: {.|......re|
|000009d0| 67 69 73 74 65 72 20 63 | 68 61 72 20 63 68 20 3d |gister c|har ch =|
|000009e0| 20 65 76 2e 6d 65 73 73 | 61 67 65 20 26 20 63 68 | ev.mess|age & ch|
|000009f0| 61 72 43 6f 64 65 4d 61 | 73 6b 3b 0d 09 09 09 0d |arCodeMa|sk;.....|
|00000a00| 09 09 09 69 66 20 28 28 | 63 68 20 3d 3d 20 63 68 |...if ((|ch == ch|
|00000a10| 72 65 74 75 72 6e 29 20 | 7c 7c 20 28 63 68 20 3d |return) ||| (ch =|
|00000a20| 3d 20 63 68 65 6e 74 65 | 72 29 29 20 7b 0d 09 09 |= chente|r)) {...|
|00000a30| 09 09 0d 09 09 09 09 2a | 62 6f 78 67 6f 65 73 61 |.......*|boxgoesa|
|00000a40| 77 61 79 20 3d 20 74 72 | 75 65 3b 0d 09 09 09 09 |way = tr|ue;.....|
|00000a50| 0d 09 09 09 09 72 65 74 | 75 72 6e 20 28 74 72 75 |.....ret|urn (tru|
|00000a60| 65 29 3b 20 2f 2a 65 76 | 65 6e 74 20 63 6f 6e 73 |e); /*ev|ent cons|
|00000a70| 75 6d 65 64 2a 2f 0d 09 | 09 09 09 7d 0d 09 09 09 |umed*/..|...}....|
|00000a80| 09 0d 09 09 09 62 72 65 | 61 6b 3b 0d 09 09 09 7d |.....bre|ak;....}|
|00000a90| 0d 09 09 09 0d 09 09 63 | 61 73 65 20 6d 6f 75 73 |.......c|ase mous|
|00000aa0| 65 44 6f 77 6e 3a 09 7b | 09 0d 09 09 09 57 69 6e |eDown:.{|.....Win|
|00000ab0| 64 6f 77 50 74 72 20 77 | 3b 0d 09 09 09 0d 09 09 |dowPtr w|;.......|
|00000ac0| 09 46 69 6e 64 57 69 6e | 64 6f 77 20 28 65 76 2e |.FindWin|dow (ev.|
|00000ad0| 77 68 65 72 65 2c 20 26 | 77 29 3b 0d 09 09 09 0d |where, &|w);.....|
|00000ae0| 09 09 09 69 66 20 28 77 | 20 21 3d 20 61 62 6f 75 |...if (w| != abou|
|00000af0| 74 77 69 6e 64 6f 77 29 | 20 2f 2a 65 76 65 6e 74 |twindow)| /*event|
|00000b00| 20 64 65 66 69 6e 69 74 | 65 6c 79 20 6e 6f 74 20 | definit|ely not |
|00000b10| 63 6f 6e 73 75 6d 65 64 | 2a 2f 0d 09 09 09 09 72 |consumed|*/.....r|
|00000b20| 65 74 75 72 6e 20 28 66 | 61 6c 73 65 29 3b 0d 09 |eturn (f|alse);..|
|00000b30| 09 09 09 0d 09 09 09 69 | 66 20 28 77 20 3d 3d 20 |.......i|f (w == |
|00000b40| 46 72 6f 6e 74 57 69 6e | 64 6f 77 20 28 29 29 0d |FrontWin|dow ()).|
|00000b50| 09 09 09 09 2a 62 6f 78 | 67 6f 65 73 61 77 61 79 |....*box|goesaway|
|00000b60| 20 3d 20 74 72 75 65 3b | 0d 09 09 09 65 6c 73 65 | = true;|....else|
|00000b70| 0d 09 09 09 09 53 65 6c | 65 63 74 57 69 6e 64 6f |.....Sel|ectWindo|
|00000b80| 77 20 28 77 29 3b 0d 09 | 09 09 0d 09 09 09 72 65 |w (w);..|......re|
|00000b90| 74 75 72 6e 20 28 74 72 | 75 65 29 3b 20 2f 2a 65 |turn (tr|ue); /*e|
|00000ba0| 76 65 6e 74 20 63 6f 6e | 73 75 6d 65 64 2a 2f 0d |vent con|sumed*/.|
|00000bb0| 09 09 09 7d 0d 09 09 09 | 0d 09 09 63 61 73 65 20 |...}....|...case |
|00000bc0| 75 70 64 61 74 65 45 76 | 74 3a 20 7b 0d 09 09 09 |updateEv|t: {....|
|00000bd0| 72 65 67 69 73 74 65 72 | 20 57 69 6e 64 6f 77 50 |register| WindowP|
|00000be0| 74 72 20 65 76 65 6e 74 | 77 69 6e 64 6f 77 20 3d |tr event|window =|
|00000bf0| 20 28 57 69 6e 64 6f 77 | 50 74 72 29 20 28 65 76 | (Window|Ptr) (ev|
|00000c00| 2e 6d 65 73 73 61 67 65 | 29 3b 0d 09 0d 09 09 09 |.message|);......|
|00000c10| 69 66 20 28 65 76 65 6e | 74 77 69 6e 64 6f 77 20 |if (even|twindow |
|00000c20| 21 3d 20 61 62 6f 75 74 | 77 69 6e 64 6f 77 29 0d |!= about|window).|
|00000c30| 09 09 09 09 72 65 74 75 | 72 6e 20 28 66 61 6c 73 |....retu|rn (fals|
|00000c40| 65 29 3b 20 2f 2a 65 76 | 65 6e 74 20 6e 6f 74 20 |e); /*ev|ent not |
|00000c50| 63 6f 6e 73 75 6d 65 64 | 2a 2f 0d 09 09 09 0d 09 |consumed|*/......|
|00000c60| 09 09 2f 2a 68 61 6e 64 | 6c 65 20 75 70 64 61 74 |../*hand|le updat|
|00000c70| 65 2c 20 77 65 20 6d 69 | 67 68 74 20 62 65 20 75 |e, we mi|ght be u|
|00000c80| 73 69 6e 67 20 61 20 73 | 63 72 65 65 6e 20 73 61 |sing a s|creen sa|
|00000c90| 76 65 72 2a 2f 0d 09 09 | 09 0d 09 09 09 70 75 73 |ver*/...|.....pus|
|00000ca0| 68 6d 61 63 70 6f 72 74 | 20 28 65 76 65 6e 74 77 |hmacport| (eventw|
|00000cb0| 69 6e 64 6f 77 29 3b 0d | 09 09 09 0d 09 09 09 42 |indow);.|.......B|
|00000cc0| 65 67 69 6e 55 70 64 61 | 74 65 20 28 65 76 65 6e |eginUpda|te (even|
|00000cd0| 74 77 69 6e 64 6f 77 29 | 3b 0d 09 09 09 0d 09 09 |twindow)|;.......|
|00000ce0| 09 64 72 61 77 61 62 6f | 75 74 20 28 65 76 65 6e |.drawabo|ut (even|
|00000cf0| 74 77 69 6e 64 6f 77 29 | 3b 0d 09 09 09 0d 09 09 |twindow)|;.......|
|00000d00| 09 45 6e 64 55 70 64 61 | 74 65 20 28 65 76 65 6e |.EndUpda|te (even|
|00000d10| 74 77 69 6e 64 6f 77 29 | 3b 0d 09 09 09 0d 09 09 |twindow)|;.......|
|00000d20| 09 70 6f 70 6d 61 63 70 | 6f 72 74 20 28 29 3b 0d |.popmacp|ort ();.|
|00000d30| 09 09 09 09 09 09 09 09 | 0d 09 09 09 72 65 74 75 |........|....retu|
|00000d40| 72 6e 20 28 74 72 75 65 | 29 3b 20 2f 2a 65 76 65 |rn (true|); /*eve|
|00000d50| 6e 74 20 63 6f 6e 73 75 | 6d 65 64 2c 20 64 6f 6e |nt consu|med, don|
|00000d60| 27 74 20 67 65 74 20 72 | 69 64 20 6f 66 20 74 68 |'t get r|id of th|
|00000d70| 65 20 61 62 6f 75 74 20 | 62 6f 78 2a 2f 0d 09 09 |e about |box*/...|
|00000d80| 09 7d 0d 09 09 09 0d 09 | 09 63 61 73 65 20 61 63 |.}......|.case ac|
|00000d90| 74 69 76 61 74 65 45 76 | 74 3a 09 09 09 09 09 09 |tivateEv|t:......|
|00000da0| 09 09 0d 09 09 09 72 65 | 74 75 72 6e 20 28 74 72 |......re|turn (tr|
|00000db0| 75 65 29 3b 20 2f 2a 65 | 76 65 6e 74 20 63 6f 6e |ue); /*e|vent con|
|00000dc0| 73 75 6d 65 64 2c 20 64 | 6f 6e 27 74 20 67 65 74 |sumed, d|on't get|
|00000dd0| 20 72 69 64 20 6f 66 20 | 74 68 65 20 61 62 6f 75 | rid of |the abou|
|00000de0| 74 20 62 6f 78 2a 2f 0d | 09 09 7d 20 2f 2a 73 77 |t box*/.|..} /*sw|
|00000df0| 69 74 63 68 2a 2f 0d 09 | 0d 09 72 65 74 75 72 6e |itch*/..|..return|
|00000e00| 20 28 66 61 6c 73 65 29 | 3b 20 2f 2a 65 76 65 6e | (false)|; /*even|
|00000e10| 74 20 6e 6f 74 20 63 6f | 6e 73 75 6d 65 64 2a 2f |t not co|nsumed*/|
|00000e20| 0d 09 7d 20 2f 2a 61 62 | 6f 75 74 68 61 6e 64 6c |..} /*ab|outhandl|
|00000e30| 65 65 76 65 6e 74 2a 2f | 0d 0d 0d 76 6f 69 64 20 |eevent*/|...void |
|00000e40| 61 62 6f 75 74 63 6f 6d | 6d 61 6e 64 20 28 76 6f |aboutcom|mand (vo|
|00000e50| 69 64 29 20 7b 0d 09 0d | 09 45 76 65 6e 74 52 65 |id) {...|.EventRe|
|00000e60| 63 6f 72 64 20 65 76 3b | 0d 09 62 6f 6f 6c 65 61 |cord ev;|..boolea|
|00000e70| 6e 20 66 6c 65 78 69 74 | 61 62 6f 75 74 20 3d 20 |n flexit|about = |
|00000e80| 66 61 6c 73 65 3b 0d 09 | 0d 09 6f 70 65 6e 61 62 |false;..|..openab|
|00000e90| 6f 75 74 20 28 74 72 75 | 65 29 3b 0d 09 0d 09 77 |out (tru|e);....w|
|00000ea0| 68 69 6c 65 20 28 21 66 | 6c 65 78 69 74 61 62 6f |hile (!f|lexitabo|
|00000eb0| 75 74 29 20 7b 0d 09 09 | 0d 09 09 57 61 69 74 4e |ut) {...|...WaitN|
|00000ec0| 65 78 74 45 76 65 6e 74 | 20 28 65 76 65 72 79 45 |extEvent| (everyE|
|00000ed0| 76 65 6e 74 2c 20 26 65 | 76 2c 20 31 2c 20 6e 69 |vent, &e|v, 1, ni|
|00000ee0| 6c 29 3b 0d 09 09 0d 09 | 09 69 66 20 28 21 61 62 |l);.....|.if (!ab|
|00000ef0| 6f 75 74 68 61 6e 64 6c | 65 65 76 65 6e 74 20 28 |outhandl|eevent (|
|00000f00| 65 76 2c 20 26 66 6c 65 | 78 69 74 61 62 6f 75 74 |ev, &fle|xitabout|
|00000f10| 29 29 20 7b 20 2f 2a 65 | 76 65 6e 74 20 6e 6f 74 |)) { /*e|vent not|
|00000f20| 20 63 6f 6e 73 75 6d 65 | 64 20 62 79 20 61 62 6f | consume|d by abo|
|00000f30| 75 74 20 62 6f 78 2a 2f | 0d 09 09 0d 09 09 09 69 |ut box*/|.......i|
|00000f40| 66 20 28 21 6d 61 69 6e | 65 76 65 6e 74 68 61 6e |f (!main|eventhan|
|00000f50| 64 6c 65 72 20 28 65 76 | 29 29 20 7b 20 2f 2a 75 |dler (ev|)) { /*u|
|00000f60| 73 65 72 20 70 72 65 73 | 73 65 64 20 63 6d 64 2d |ser pres|sed cmd-|
|00000f70| 70 65 72 69 6f 64 20 6f | 72 20 51 75 69 74 20 66 |period o|r Quit f|
|00000f80| 72 6f 6d 20 66 69 6c 65 | 20 6d 65 6e 75 2a 2f 0d |rom file| menu*/.|
|00000f90| 09 09 09 0d 09 09 09 09 | 66 6c 65 78 69 74 61 62 |........|flexitab|
|00000fa0| 6f 75 74 20 3d 20 74 72 | 75 65 3b 0d 09 09 09 09 |out = tr|ue;.....|
|00000fb0| 7d 0d 09 09 09 7d 0d 09 | 09 7d 20 2f 2a 77 68 69 |}....}..|.} /*whi|
|00000fc0| 6c 65 2a 2f 0d 09 0d 09 | 63 6c 6f 73 65 61 62 6f |le*/....|closeabo|
|00000fd0| 75 74 20 28 74 72 75 65 | 29 3b 0d 09 7d 20 2f 2a |ut (true|);..} /*|
|00000fe0| 61 62 6f 75 74 63 6f 6d | 6d 61 6e 64 2a 2f 0d 0d |aboutcom|mand*/..|
|00000ff0| 0d 0d 0d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001000| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00001010| 72 65 63 74 2c 2a 62 69 | 67 72 65 63 74 3b 0d 09 |rect,*bi|grect;..|
|00001020| 62 6f 6f 6c 65 61 6e 09 | 7a 6f 6f 6d 75 70 3b 0d |boolean.|zoomup;.|
|00001030| 0d 61 70 70 6c 65 74 61 | 62 6f 75 74 2e 63 02 00 |.appleta|bout.c..|
|00001040| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|00001050| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|00001060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001070| 00 00 a9 81 44 c6 00 00 | 00 00 00 00 01 7e 0d 09 |....D...|.....~..|
|00001080| 69 6e 74 20 69 3b 0d 09 | 0d 09 47 65 74 50 6f 72 |int i;..|..GetPor|
|00001090| 74 20 28 26 73 61 76 65 | 50 6f 72 74 29 3b 0d 09 |t (&save|Port);..|
|000010a0| 0d 09 4f 70 65 6e 50 6f | 72 74 20 28 64 65 73 6b |..OpenPo|rt (desk|
|000010b0| 50 6f 72 74 20 3d 20 28 | 47 72 61 66 50 74 72 29 |Port = (|GrafPtr)|
|000010c0| 20 4e 65 77 50 74 72 20 | 28 73 69 7a 65 6f 66 20 | NewPtr |(sizeof |
|000010d0| 28 47 72 61 66 50 6f 72 | 74 29 29 29 3b 0d 09 0d |(GrafPor|t)));...|
|000010e0| 09 49 6e 69 74 50 6f 72 | 74 20 28 64 65 73 6b 50 |.InitPor|t (deskP|
|000010f0| 6f 72 74 29 3b 0d 09 0d | 09 53 65 74 50 6f 72 74 |ort);...|.SetPort|
|00001100| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 19 |...H..Mo|naco....|
|00001110| 00 70 00 0e 00 00 00 09 | 00 69 00 70 7f ff 00 19 |.p......|.i.p....|
|00001120| 00 00 00 09 00 69 00 06 | 00 04 00 a0 00 10 01 dd |.....i..|........|
|00001130| 02 3d 00 a0 00 10 01 dd | 02 3d a3 67 1e d6 00 00 |.=......|.=.g....|
|00001140| 00 49 00 00 00 49 00 00 | 00 00 01 00 00 00 01 00 |.I...I..|........|
|00001150| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 ed cb 18 |...L...L|...2....|
|00001160| 0d 98 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|00001170| 00 0a 03 ed ff ff 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+